CFLAGS=-g

SOURCES=asctime.c clock.c ctime.c difftime.c gmtime.c localtime.c mktime.c strftime.c

PROGRAMS=$(SOURCES:.c=)

all: ${PROGRAMS}

asctime: asctime.c
	${CC} ${CFLAGS} -o $@ $<   
clock: clock.c
	${CC} ${CFLAGS} -o $@ $< -lm
ctime: ctime.c
	${CC} ${CFLAGS} -o $@ $<   
difftime: difftime.c
	${CC} ${CFLAGS} -o $@ $<
gmtime: gmtime.c
	${CC} ${CFLAGS} -o $@ $<   
localtime: localtime.c
	${CC} ${CFLAGS} -o $@ $<
mktime: mktime.c
	${CC} ${CFLAGS} -o $@ $<   
strftime: strftime.c
	${CC} ${CFLAGS} -o $@ $<

clean:
	rm -rf ${PROGRAMS}
